package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.pojo.StuInfo;
import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface StuMapper extends MPJBaseMapper<StuInfo>,BaseMapper<StuInfo> {
    // 自定义根据绑定码查询
    @Select("SELECT * FROM stu_info WHERE bind_code = #{bindCode}")
    StuInfo getStuInfoByBindCode(@Param("bindCode") String bindCode);
}
